using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WeaponIconDisplay : MonoBehaviour
{
    GameObject bow;
    GameObject sword;
    bool isSwitch;

    // Start is called before the first frame update
    void Start()
    {
        bow = transform.Find("Bow").gameObject;
        sword = transform.Find("Sword").gameObject;
        isSwitch = true;
        SwitchWeapon();
    }

    public void SwitchWeapon()
    {
        sword.SetActive(isSwitch);
        bow.SetActive(!isSwitch);
        isSwitch = !isSwitch;
    }
}
